<template>
	<view class="main">
		<view class="content">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
import { getConfig } from "@/api/my.js";
export default {
	data() {
		return {
			content: '',
		};
	},
	methods: {
		getInfo(type) {
			getConfig({ name: type }).then(res => {
				this.content = res.data
			})
		}
	},

	onLoad(e) {
		this.getInfo(e.type);
		uni.setNavigationBarTitle({
			title: e.name
		})
	},
}
</script>

<style lang="scss" scoped>
.main {
	position: relative;
	min-height: 100vh;
	background-color: #ffffff;

	.content {
		padding: 50rpx;
		border-top: 14rpx solid #fafafa;
		line-height: 50rpx;
	}
}
</style>
